package com.gykj.sso.config;

import com.gykj.sso.interceptor.SSOInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(SSOProperties.class)
public class SSOAutoConfiguration {

    @Bean
    public SSOInterceptor getBean(SSOProperties ssoProperties) {
        return new SSOInterceptor(ssoProperties);
    }
}
